package com.young.core.enums;

/**
 * job的状态
 */
public enum JobStatusEnum {

    OFF(0, "关闭"),
    ON(1, "打开"),
    MANUAL(2, "运行一次");

    public int code;
    public String meaning;

    JobStatusEnum(int code, String meaning) {
        this.code = code;
        this.meaning = meaning;
    }

    public static JobStatusEnum codeOf(int code) {
        for (JobStatusEnum e : values()) {
            if (e.code == code) {
                return e;
            }
        }
        return null;
    }

}
